import request from '@/utils/request'

// 13. 获取订单支付信息
const reqPayInfo = (orderId) => {
  return request({
    url: `/api/payment/weixin/createNative/${orderId}`
  })
}

// 获取支付订单状态
// URL:/api/payment/weixin/queryPayStatus/{orderId}  get
const reqPayStatus = (orderId) =>
  requests({ url: `/payment/weixin/queryPayStatus/${orderId}`, method: 'get' })

export { reqPayInfo, reqPayStatus }
